//
//  AddBankBillCell.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/11/2.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class AddBankBillCell: UICollectionViewCell {
    
    let bankImageView = UIImageView()
    let titleLabel = UILabel()

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.contentView.addSubview(bankImageView)
        
        titleLabel.font = UIFont.systemFont(ofSize: RATIO(maxNum: 16))
        self.contentView.addSubview(titleLabel)
        
        bankImageView.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(RATIO_H(maxNum: 10))
            make.centerX.equalToSuperview()
            make.width.height.equalTo(RATIO_H(maxNum: 40))
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.top.equalTo(bankImageView.snp.bottom).offset(RATIO_H(maxNum: 10))
            make.centerX.equalTo(bankImageView)
            make.width.greaterThanOrEqualTo(10)
            make.height.equalTo(RATIO_H(maxNum: 30))
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    

}
